package com.ruoyi.framework.security.token;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * @Description : 后台用户 （比前台用户多了 authorities ）
 * @Author : wzkris
 * @Version : V1.0.0
 * @Date : 2022/11/28 14:18
 */
public class SysUserAuthenticationToken extends UsernamePasswordAuthenticationToken {

    /**
     * 该方法只是用来选择对应的provider处理器
     */
    public SysUserAuthenticationToken(Object principal,
                                      Object credentials,
                                      Collection<? extends GrantedAuthority> authorities) {
        super(principal, credentials,authorities);
    }
}